<?php $this->renderPartial('_slider1')?>
<div class="eleven columns">
    <ul class="breadcrumbs top">
        <li><a title="<?php echo $this->siteName?>" href="<?php echo $this->baseUrl?>"><span class="icon home gray"></span></a></li>
        <li><a title="<?php echo $this->siteName?>" href="<?php echo $this->baseUrl?>">Trang chủ</a><b>»</b></li>
        <li><?php echo $title?></li>
    </ul> 
</div>
<div class="five columns">
    <div class="search top">
        <form action="<?php echo $this->createUrl('/movie/movie/search')?>" method="post" class="fullwidth-search">
            <input name="q" type="text" placeholder="Tìm phim" class="search" <?php if($term = Yii::app()->request->getQuery('term')) echo 'value="'.$term.'"'?> style="padding: 11px 30px 11px 11px;">
            <input type="submit" class="submit-search" style="top: 14px" value="">
        </form>
    </div>
</div>
<div class="sixteen columns"> 
    <h1 class="page-title"><?php echo $title?><span class="line"></span></h1>   
</div><!-- Page Title -->


<div class="recent-work gallery clearfix list">

    <?php $this->widget('zii.widgets.CListView', array(
                'id'=>'movie-list',
                'dataProvider'=>$dataProvider,
                'itemView'=>'_view',
                'template'=>'{items} {pager}',
                'pagerCssClass' => 'pagination pagination-right',
                'ajaxUpdate'=>true,

                'loadingCssClass' => '',
                'beforeAjaxUpdate'=>'function(id,options){
                $("#ajax-loading").fadeIn();    
                }',
                'afterAjaxUpdate'=>'function(id,options){
                $("#ajax-loading").fadeOut();    
                }',
                'itemsCssClass' => 'items clearfix',

                'enablePagination' => true,
                'pager'=>array(
                    'class'=>'MyLinkPager',
                    'maxButtonCount'    =>  8,
                    'header'            => FALSE, 
                    'htmlOptions' => array(
                        'class' => 'pagination color',
                    ),
                    'hiddenPageCssClass' => 'disabled',
                    'selectedPageCssClass' => 'current',

                    'nextPageCssClass' => 'page-next',
                    'firstPageCssClass' => 'page-first',
                    'lastPageCssClass' => 'page-last',
                    'previousPageCssClass' => 'page-prev',

                    'lastPageLabel' => 'Last ››',//»
                    'firstPageLabel' => '‹‹ First',    //«                
                    'prevPageLabel' => '‹ Prev',
                    'nextPageLabel' => 'Next ›',
                ),
            ));?>

</div>